import axios from "axios";
export function getClassify(){
  return axios({
    url:"/api/classifyList",
    method:"get"
  })
}

interface addSatate{
  name:string,
  value:string
}
export function addClassify(data:addSatate){
  return axios({
    url:"/api/addClassify",
    method:"post",
    data
  })
}

export function findClassify(data:{id:number}){
  return axios({
    url:"/api/findClassify",
    method:"post",
    data
  })
}
